import { createRouter, createWebHistory } from 'vue-router'
import DeWu from '../views/dewu/dewu.vue'
import TabBar from '../components/TabBar.vue'
const routes = [
  {
    path: '/dewu',
    name: 'dewu',
    components:{
      default:DeWu,
      footer:TabBar
    } 
  },
  {
    path: '/',
    name: 'cart',
    components:{
      default:() => import('../views/cart/cart.vue'),
       footer:TabBar
    } 
  },
   {
    path: '/tansou',
    name: 'tansou',
    components:{
      default:() => import('../views/tansou/tansou.vue'),
       footer:TabBar
    } 
  },
  {
    path: '/user',
    name: 'user',
    components:{
      default:() => import('../views/user/user.vue'),
       footer:TabBar
    } 
  },
   {
    path: '/search',
    name: 'search',
    component: () => import('../views/search/search.vue'),
    
    },

]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
